#define  _CRT_SECURE_NO_WARNINGS 1

#include "SList.h"

int main()
{
	SLNode* plist1 = NULL;
	SLNode* plist2 = NULL;
	SLNode* plist3 = NULL;
	SListPushBack(&plist2, 0);
	SListPushBack(&plist3, 1);
	SListPushBack(&plist3, 2);
	SListPushBack(&plist3, 3);
	SListPushBack(&plist3, 4);
	SListPushBack(&plist3, 5);
	SListPushBack(&plist3, 6);
	SListPushBack(&plist3, 7);
	SListPushBack(&plist3, 8);
	/*printf("list1:\n");
	SListPrint(plist1);
	printf("list2:\n");
	SListPrint(plist2);
	printf("list3:\n");
	SListPrint(plist3);*/

	/*plist1 = SListReverse1(plist1);
	SListPrint(plist1);

	plist2 = SListReverse1(plist2);
	SListPrint(plist2);*/

	plist3 = SListReverse1(plist3);
	SListPrint(plist3);

	//plist1 = SListReverse2(plist1);
	//SListPrint(plist1);

	//plist2 = SListReverse2(plist2);
	//SListPrint(plist2);

	plist3 = SListReverse2(plist3);
	SListPrint(plist3);

	SListReverseBetween(plist3, 2, 5);
	SListPrint(plist3);

	return 0;
}